package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> query4List(QueryObject qo);

    void updateHotState(@Param("id") Long id, @Param("hot") int hot);

    void updateInfo(@Param("id") Long id, @Param("info") String info);

    List<Destination> selectHotByParentId(Long parentId);

    List<Destination> selectHotByRegionId(Long regionId);

    List<Destination> selectDestinationByQO(QueryObject qo);

    List<Destination> selectAllByUserId(Long userId);

    List<Destination> selectDestByDeep(int deep);
}